package com.antexpress.dao;

import com.antexpress.pojo.Department;
import com.antexpress.pojo.Title;
import java.util.List;

/**
 *
 * @author Andy
 */
public interface DepartmentDAO {
    boolean saveOrUpdateDepartment(Department dept);
    boolean saveOrUpdateTitle(Title title);
    List<Department> getAllDept();  //获取所有部门记录
    List<Title> getTitleListByDept(String deptId); //根据部门id获取职位列表
    Department getDeptById(String id);
    Title getTitleById(String id);
    List<Title> getAllTitle();//获取所有职位列表
    boolean deleteTitle(Title title);
    boolean deleteDept(Department dept);
    boolean batchDeleteTitle(List<Title> titles);
    Title getTitleByName(String name);
}
